package com.example.eurekaconsumer.feign;

import com.example.api.DemoApi;
import org.springframework.cloud.openfeign.FeignClient;

/*** name: 服务者application.yml中的spring.application.name
 fallback: 断路器执行方法，即方法执行失败调用***/
@FeignClient(name="service-provider", fallback = FeignServiceImpl.class)
public interface FeignService extends DemoApi {
}

